import * as echarts from 'echarts/core';
const homeChartOpt = {
    data() {
        return {
            homeChartOpt: {
                grid: {
                    top: '30%',
                    left: '2%',
                    right: '2%',
                    bottom: '25%'
                  },
                dataZoom: [
                    {
                        type: 'inside',
                        xAxisIndex: [0],
                        start: 1,
                        end: 30,
                        zoomLock: true, //锁定区域禁止缩放
                    },
                ],
                xAxis: {
                    data: [],
                    axisLabel: {
                        textStyle: {
                            color: '#fff' // 设置 x 轴文字颜色
                        }
                    },
                    axisLine: {
                        show: false,
                    },
                    axisTick: {
                        show: false // 不显示 y 轴刻度线
                    },
                    splitLine: {
                        show: false // 去掉 y 轴上的分隔线
                    },
                    data: []
                },
                yAxis: {
                    axisLine: {
                        show: false,
                    },
                    axisLabel: {
                        show: false
                    },
                    splitLine: {
                        show: false // 去掉 y 轴上的分隔线
                    },
                },
                series: [
                    {
                        data: [],
                        smooth: true,
                        showAllSymbol: true,
                        symbol: 'emptyCircle',
                        type: 'line',
                        name: 'line',
                        lineStyle: {
                            color: '#fff', // 折线的颜色设置为白色
                            width: 2 // 折线的宽度
                        },
                        symbol: 'circle',
                        symbolSize: 8,
                        label :{
                            show:true,
                            position: 'top',
                            color:"#fff",
                            formatter: '{c}%'
                        },
                        itemStyle:{
                            color:'#FDD85D'
                        }
                    }
                ]
            }
        }
    },
}
export default homeChartOpt;